package com.yellowpage.ca.data;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * UserFunctionConfig entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "CA_USER_FUNCTION_CONFIG")
public class UserFunctionConfig implements java.io.Serializable {

	// Fields

	private Long configId;
	private Integer userFunctionId;
	private String code;
	private String value;
	private Integer createUser;
	private Date createTime;
	private Integer lastUpdateUser;
	private Date lastUpdateTime;

	// Constructors

	/** default constructor */
	public UserFunctionConfig() {
	}

	/** full constructor */
	public UserFunctionConfig(Integer userFunctionId, String code,
			String value, Integer createUser, Date createTime,
			Integer lastUpdateUser, Date lastUpdateTime) {
		this.userFunctionId = userFunctionId;
		this.code = code;
		this.value = value;
		this.createUser = createUser;
		this.createTime = createTime;
		this.lastUpdateUser = lastUpdateUser;
		this.lastUpdateTime = lastUpdateTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "CONFIG_ID", unique = true, nullable = false)
	public Long getConfigId() {
		return this.configId;
	}

	public void setConfigId(Long configId) {
		this.configId = configId;
	}

	@Column(name = "USER_FUNCTION_ID")
	public Integer getUserFunctionId() {
		return this.userFunctionId;
	}

	public void setUserFunctionId(Integer userFunctionId) {
		this.userFunctionId = userFunctionId;
	}

	@Column(name = "CODE", length = 64)
	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "VALUE", length = 256)
	public String getValue() {
		return this.value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@Column(name = "CREATE_USER")
	public Integer getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(Integer createUser) {
		this.createUser = createUser;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME", length = 0)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "LAST_UPDATE_USER")
	public Integer getLastUpdateUser() {
		return this.lastUpdateUser;
	}

	public void setLastUpdateUser(Integer lastUpdateUser) {
		this.lastUpdateUser = lastUpdateUser;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "LAST_UPDATE_TIME", length = 0)
	public Date getLastUpdateTime() {
		return this.lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

}

